package com.crape.common.model;

import java.util.List;

import com.crape.common.constants.ConstantCode;
import com.crape.common.utils.StringUtil;

/**
 * 用户文章评论类
 * 
 * @author ChenKai 2012-11-4 下午12:24:30
 */
public class ArticleComment {

	private Long id; // ID
	private Long pid; // 父节点id
	private Long accountid; // 用户ID
	private Long articleid; // 所属文章ID
	private String comment; // 回复内容
	private String createdate; // 创建时间
	private String modifydate; // 修改时间

	//=====================================
	private String  imagename;   // 图片名称
    private String  image;       // 原图
	private String username; // 用户名
	private List<ArticleReply> replys; // 此评论的回复
	private Integer rowNum;
	private Integer isMe; // 状态：0=NO，1=YES
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public Long getAccountid() {
		return accountid;
	}

	public void setAccountid(Long accountid) {
		this.accountid = accountid;
	}

	public Long getArticleid() {
		return articleid;
	}

	public void setArticleid(Long articleid) {
		this.articleid = articleid;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getCreatedate() {
		return StringUtil.getTimeStr(createdate);
	}

	public void setCreatedate(String createdate) {
		this.createdate = createdate;
	}

	public String getModifydate() {
		return StringUtil.getTimeStr(modifydate);
	}

	public void setModifydate(String modifydate) {
		this.modifydate = modifydate;
	}

	public String getImagename() {
		return imagename;
	}

	public void setImagename(String imagename) {
		this.imagename = imagename;
	}

	public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

	public String[] getImages() {
		return StringUtil.imagesUrl(imagename, ConstantCode.imageSize);
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public List<ArticleReply> getReplys() {
		return replys;
	}

	public void setReplys(List<ArticleReply> replys) {
		this.replys = replys;
	}

	public Integer getRowNum() {
		return rowNum;
	}

	public void setRowNum(Integer rowNum) {
		this.rowNum = rowNum;
	}

	public Integer getIsMe() {
		return isMe;
	}

	public void setIsMe(Integer isMe) {
		this.isMe = isMe;
	}

}
